package com.chag.app.home.controller;

import com.chag.app.home.common.MVCViewName;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping(value = "")
public class IndexController {
    //首页
    @RequestMapping(value = "index")
    public String index() {
        return MVCViewName.INDEX.toString();
    }

    //头部页
    @RequestMapping(value = "header")
    public String header() {
        return MVCViewName.HEADER.toString();
    }

    //搜索页
    @RequestMapping(value = "search")
    public String search() {
        return MVCViewName.SEARCH.toString();
    }

    //旅游页
    @RequestMapping(value = "tour")
    public String tour() {
        return MVCViewName.TOUR.toString();
    }

    //页脚页
    @RequestMapping(value = "footer")
    public String footer() {
        return MVCViewName.FOOTER.toString();
    }
}
